#ifndef CAMERAMODEL_H
#define CAMERAMODEL_H

#include <QGLWidget>

class CameraModel : public QGLWidget
{
    Q_OBJECT
public:
    explicit CameraModel(QWidget *parent = 0);
    
signals:
    void targetDirectionChanged(int x, int y , int z);
    void resetDial(int value);
public slots:
    void changeCurrentDirection(int cur_x, int cur_y, int cur_z);
    void changeTargetDirectionX(int target_x);
    void changeTargetDirectionY(int target_y);
    void changeTargetDirectionZ(int target_z);
    void reset();
    void set();

protected:
    void initializeGL();
    void resizeGL(int w, int h);
    void paintGL();

private:
    int target_x;
    int target_y;
    int target_z;
    int cur_x;
    int cur_y;
    int cur_z;

};

#endif // CAMERAMODEL_H
